package com.cloudkinto.service.qianyi.vo;

import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class QianyiInventoryResponse {
    private String warehouseCode;
    private String warehouseSku;
    private String onwayQuantity;
    private String pendingQuantity;
    private String sellableQuantity;
    private String unsellableQuantity;
    private String reservedQuantity;
    private String useQuantity;
    private String totalQuantity;

    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public String getWarehouseSku() {
        return warehouseSku;
    }

    public void setWarehouseSku(String warehouseSku) {
        this.warehouseSku = warehouseSku;
    }

    public String getOnwayQuantity() {
        return onwayQuantity;
    }

    public void setOnwayQuantity(String onwayQuantity) {
        this.onwayQuantity = onwayQuantity;
    }

    public String getPendingQuantity() {
        return StringUtils.isBlank(pendingQuantity) ? "0" : pendingQuantity;
    }

    public void setPendingQuantity(String pendingQuantity) {
        this.pendingQuantity = pendingQuantity;
    }

    public String getSellableQuantity() {
        return StringUtils.isBlank(sellableQuantity) ? "0" : sellableQuantity;
    }

    public void setSellableQuantity(String sellableQuantity) {
        this.sellableQuantity = sellableQuantity;
    }

    public String getUnsellableQuantity() {
        return StringUtils.isBlank(unsellableQuantity) ? "0" : unsellableQuantity;
    }

    public void setUnsellableQuantity(String unsellableQuantity) {
        this.unsellableQuantity = unsellableQuantity;
    }

    public String getReservedQuantity() {
        return StringUtils.isBlank(reservedQuantity) ? "0" : reservedQuantity;
    }

    public void setReservedQuantity(String reservedQuantity) {
        this.reservedQuantity = reservedQuantity;
    }

    public String getUseQuantity() {
        return StringUtils.isBlank(useQuantity) ? "0" : useQuantity;
    }

    public void setUseQuantity(String useQuantity) {
        this.useQuantity = useQuantity;
    }

    public String getTotalQuantity() {
        return StringUtils.isBlank(totalQuantity) ? "0" : totalQuantity;
    }

    public void setTotalQuantity(String totalQuantity) {
        this.totalQuantity = totalQuantity;
    }
}
